
package com.alibaba.algo.core.base;

public enum CodeEnum {
    //成功
    SUCCESS("0", "success"),
    //客户端错误
    CLIENT_ERROR("400", "client error"),
    //服务端错误
    SERVER_ERROR("500", "server error");

    private String code;

    private String desc;

    CodeEnum(String i, String s) {
        this.code = i;
        this.desc = s;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
